package com.fjxd.user.web;

import com.fjxd.feign.result.ViewResult;
import com.fjxd.user.pojo.User;
import com.fjxd.user.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class RegisterController {
    @Autowired
    private RegisterService registerService;

    @PostMapping("/register")
    public ViewResult register(@RequestBody User user){
        return registerService.insertUser(user);
    }



}